//
//  UserInfo.h
//  E_ChatRoom
//
//  Created by rimi1 on 15/6/27.
//  Copyright (c) 2015年 TJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"

@interface UserInfo : NSObject

singleton_interface(UserInfo)

@property (nonatomic, copy) NSString *user;//用户
@property (nonatomic, copy) NSString *pwd;//密码

/*登录的状态 YES 登录过/NO 注销*/
@property (nonatomic, assign) BOOL  loginStatus;

//注册的用户名
@property (nonatomic, copy) NSString *registerUser;

//注册的密码
@property (nonatomic, copy) NSString *registerPwd;

/* 从沙盒里获取用户数据*/
-(void)loadUserInfoFromSanbox;

/* 保存用户数据到沙盒*/
-(void)saveUserInfoToSanbox;
@end
